﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GreateTool
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void menuPdfDataCheck_Click(object sender, EventArgs e)
        {
            ShowMdiChild<PdfDataCheckForm>();
        }

        private void mmenuFile_CopyMove_Click(object sender, EventArgs e)
        {
            ShowMdiChild<FileMoveForm>();
        }

        private void menuFile_SelectList_Click(object sender, EventArgs e)
        {
            ShowMdiChild<FileSelectForm>();
        }

        void ShowMdiChild<T>() where T : Form, new()
        {
            var frm = new T();
            frm.MdiParent = this;
            frm.Show();
        }

        private void menuFile_OnlyName_Click(object sender, EventArgs e)
        {
            ShowMdiChild<FileOnlyNameForm>();
        }

        private void toolStripMenuItem5_Click(object sender, EventArgs e)
        {
            ShowMdiChild<StringMergeForm>();
        }

        private void toolStripMenuItem3_Click(object sender, EventArgs e)
        {
            ShowMdiChild<PdfRepoForm>();
        }
    }
}
